#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT
    QTimer *timer;
    int sec = 0;
    int mSec = 0;

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_getTimeBtn_clicked();

    void on_startTimerBtn_clicked();

    void dateTimeChanged(const QDateTime &dateTime);

    void on_stopTimerBtn_clicked();

    void on_calendar_selectionChanged();

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
